package com.ruoyi.dm.domain;

import com.ruoyi.common.core.domain.PageQuery;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;
import java.time.LocalDate;

@ApiModel("tle目标查询param")
@Data
public class TrackTleConditonParam extends PageQuery {

    //目标id
    @ApiModelProperty("目标编号")
    private String objectId;
    //目标名字
    @ApiModelProperty("目标名称")
    private String objectName;

    //国家
    @ApiModelProperty("国家")
    private String country;
    //周期
    @ApiModelProperty("周期")
    private Double period;
    //倾斜度
    @ApiModelProperty("倾斜角")
    private Double inclination;
    //远地点
    @ApiModelProperty("远地点")
    private Double apogee;
    //近地点
    @ApiModelProperty("近地点")
    private Double perigee;

    //发射时间
    @ApiModelProperty("发射时间,yyyy-MM-dd")
    private LocalDate launchStart;

    //发射时间
    @ApiModelProperty("发射时间结束 ,yyyy-MM-dd")
    private LocalDate launchEnd;

    //陨落时间
    @ApiModelProperty("陨落时间开始 ,yyyy-MM-dd")
    private LocalDate decayStart;

    @ApiModelProperty("陨落时间结束 ,yyyy-MM-dd")
    private LocalDate decayEnd;

    @Pattern(regexp = "asc|desc",message = "sort 必需是 asc 或 desc")
    private String sort = "desc";

    @ApiModelProperty("排序字段 默认发射时间")
    private String orderby = "launch";

}
